<?php

/*
	[BuyPg] (C) 2010-2011 Buypg
	$Id: GroupModel.class.php 2011-8-17 11:03:30 wufujun $
 */
if (!defined('THINK_PATH')) {
	exit('Access Denied');
}

class GroupModel extends CommonModel{
	public $_validate	=	array(
		array('name','/^[a-zA-Z]\w{1,}$/i','分组名格式错误'),
		array('title','require','分组说明必须'),
		array('name','','分组已经存在',self::EXISTS_VAILIDATE,'unique',self::MODEL_INSERT),
	);
	
	public $_auto = array(
		array('create_time','time',self::MODEL_INSERT,'function'),
		array('update_time','time',self::MODEL_UPDATE,'function'),
	);
}
?>